﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XchangeStreamer.Types;

namespace StructvsClass
{
    class Program
    {
        private static DateTime date;
        private static TimeSpan time;
        static void Main(string[] args)
        {
            ResourcePool<Trade>.GetPoolSize();
            date = DateTime.Now;
            time = date.TimeOfDay;
            Test();
        }

        private static void Test()
        {
            var trade = ResourcePool<Trade>.Accquire();

            string f = "ANHYTRVSLIUBasdddddddddddddddddddddddddddddddddddddddddddds987df987faf6sdf6 sa6fsa6fasfsaf98safsa98f6bafa8f";
            trade.BuyOrderNumber = f;
            trade.Date = date;
            trade.Time = time;
            trade.LeValue = decimal.MaxValue;
            trade.Price = decimal.MaxValue;
            trade.Value = decimal.MaxValue;
            trade.Volume = uint.MaxValue;

            ResourcePool<Trade>.Release(trade);
        }
    }
}